//
//  LuckyViewController.m
//  彩票项目
//
//  Created by 伍银荣 on 2021/8/4.
//  Copyright © 2021 com.WYR. All rights reserved.
//

#import "LuckyViewController.h"

@interface LuckyViewController ()
@property (strong, nonatomic) IBOutlet UIImageView *luckyImgView;

@end

@implementation LuckyViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    //序列帧动画
    //设置动画图片
    self.luckyImgView.animationImages = @[[UIImage imageNamed:@"gengduo_sanyuandian-yellow"],[UIImage imageNamed:@"gengduo_sanyuandian-red"]];
    //动画每隔1秒
    self.luckyImgView.animationDuration = 1;
    //0为最大重复次数
    self.luckyImgView.animationRepeatCount = 0;
    //开启动画
    [self.luckyImgView startAnimating];
    
    
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
